package james.gan.context.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * @Description: 注入注解
 * @author James
 * @date 2017/12/26
 */
@Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@Target(value = {ElementType.METHOD, ElementType.FIELD})
@Inherited
public @interface AutoWired {
  /**
   * Bean ID
   */
  String value() default "";
  
  /**
   * 类型注入
   * @return
   */
  Class<?> classType() default Object.class;

}
